package com.hl.service.serviceImpl;

import com.hl.domain.User;
import com.hl.mapper.UserMapper;
import com.hl.service.UserService;
import com.hl.util.R;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
 @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> AllUserList() {
        return userMapper.AllUserList();
    }

    @Override
    public int insertSelective(User record) {

        return userMapper.insertSelective(record);
    }

    @Override
    public int delectUserById(int id) {
        return userMapper.deleteByPrimaryKey((long) id);
    }
//模糊搜索
    @Override
    public List<User> selectUserLike(String username) {
        return userMapper.selectUserLike(username);
    }
//修改
    @Override
 public int updateByPrimaryKeySelective(User record){
        return userMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<User> AllzixunList() {
        return null;
    }
}
